
package com.punch.common.feign;


import com.punch.common.constant.ServiceNameConstants;
import com.punch.common.feign.fallback.FeignAreaServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;


/**
 * @author zlt
 */

@FeignClient(name = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = FeignAreaServiceFallbackFactory.class, decode404 = true)
public interface FeignAreaService {

    /**
     * 获取父ids
     *
     * @param areaId 地区id
     * @return string
     */
    @GetMapping(value = "/sys/area/feign/parent/{areaId}")
    String getParentIds(@PathVariable("areaId") Integer areaId);
}

